package com.example.service;

import com.example.dto.OrdersEmployeeDTO;
import com.example.dto.OrdersPageQueryDTO;
import com.example.dto.OrdersRejectionDTO;
import com.example.entity.OrdersEmployee;
import com.example.result.Result;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;

/**
 * (OrdersEmployee)表服务接口
 *
 * @author makejava
 * @since 2024-04-16 16:13:36
 */
public interface OrdersEmployeeService {

    /**
     * 通过ID查询单条数据
     *
     * @param id 主键
     * @return 实例对象
     */
    OrdersEmployee queryById(Long id);

    /**
     * 分页查询
     *
     * @param ordersEmployee 筛选条件
     * @param pageRequest      分页对象
     * @return 查询结果
     */
    Page<OrdersEmployee> queryByPage(OrdersEmployee ordersEmployee, PageRequest pageRequest);

    /**
     * 新增数据
     *
     * @param ordersEmployee 实例对象
     * @return 实例对象
     */
    OrdersEmployee insert(OrdersEmployee ordersEmployee);

    /**
     * 修改数据
     *
     * @param ordersEmployee 实例对象
     * @return 实例对象
     */
    OrdersEmployee update(OrdersEmployee ordersEmployee);

    /**
     * 通过主键删除数据
     *
     * @param id 主键
     * @return 是否成功
     */
    boolean deleteById(Long id);

    Result submit(OrdersEmployeeDTO ordersEmployeeDTO);

    Result page(OrdersPageQueryDTO ordersPageQueryDTO);

    Result rejection(OrdersRejectionDTO ordersRejectionDTO);

    Result detailById(Long id);
}
